package sqldb

import "fmt"

func Unescape(value interface{}) string {
	var unescaped []byte
	b := []byte(fmt.Sprint(value))
	for i:= 0 ; i<len(b); i++ {
		unescaped = append(unescaped, b[i])
		if b[i] == 39 {	// '
			unescaped = append(unescaped, 39)
		}
	}
	return "'"+string(unescaped)+"'"
}
